From d72d02a9bd76b025642c1bf35dd4d0314b328e1f Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 5 Nov 2002 18:05:25 +0000 Subject: [PATCH] Remove free from get_options. Thanx, Alex! --- gpsbabel/vecs.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gpsbabel/vecs.c b/gpsbabel/vecs.c index 9f7bfd6f9..a06a82769 100644 --- a/gpsbabel/vecs.c +++ b/gpsbabel/vecs.c @@ -222,7 +222,11 @@ get_option(const char *iarglist, const char *argname) break; } } - free(arglist); + /* + * Return an offset into the allocated copy. + * The caller mustn't free or otherwise get froggy with + * this data. + */ return rval; } -- 2.30.2